package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysInventoryMapper;
import com.ruoyi.system.domain.SysInventory;
import com.ruoyi.system.service.ISysInventoryService;

/**
 * 库存信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
@Service
public class SysInventoryServiceImpl implements ISysInventoryService 
{
    @Autowired
    private SysInventoryMapper sysInventoryMapper;

    /**
     * 查询库存信息
     * 
     * @param id 库存信息主键
     * @return 库存信息
     */
    @Override
    public SysInventory selectSysInventoryById(Long id)
    {
        return sysInventoryMapper.selectSysInventoryById(id);
    }

    /**
     * 查询库存信息列表
     * 
     * @param sysInventory 库存信息
     * @return 库存信息
     */
    @Override
    public List<SysInventory> selectSysInventoryList(SysInventory sysInventory)
    {
        return sysInventoryMapper.selectSysInventoryList(sysInventory);
    }

    /**
     * 新增库存信息
     * 
     * @param sysInventory 库存信息
     * @return 结果
     */
    @Override
    public int insertSysInventory(SysInventory sysInventory)
    {
        return sysInventoryMapper.insertSysInventory(sysInventory);
    }

    /**
     * 修改库存信息
     * 
     * @param sysInventory 库存信息
     * @return 结果
     */
    @Override
    public int updateSysInventory(SysInventory sysInventory)
    {
        return sysInventoryMapper.updateSysInventory(sysInventory);
    }

    /**
     * 批量删除库存信息
     * 
     * @param ids 需要删除的库存信息主键
     * @return 结果
     */
    @Override
    public int deleteSysInventoryByIds(Long[] ids)
    {
        return sysInventoryMapper.deleteSysInventoryByIds(ids);
    }

    /**
     * 删除库存信息信息
     * 
     * @param id 库存信息主键
     * @return 结果
     */
    @Override
    public int deleteSysInventoryById(Long id)
    {
        return sysInventoryMapper.deleteSysInventoryById(id);
    }
}
